<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	

	<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>  
	              
	<p:dialog modal="true" widgetVar="statusDialog" header="Status"   
	        draggable="false" closable="false">  
	    <h:graphicImage value="#{resource['images/ajax-loading-bar.gif']}" /> 
	</p:dialog> 
	 
</html>